From: Florian Müllner Date: Thu, 10 Apr 2025 18:17:16 +0000 (+0200) Subject: dateMenu: Stop indicating do-not-disturb status X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~124^2^2~10 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=23f424878755d5836e1d0bc62eaf20bafe30ab96;p=gnome-shell.git dateMenu: Stop indicating do-not-disturb status The control for enabling/disabling do-not-disturb will be moved into quick settings. It makes sense to then also move the indicator, so stop showing the do-not-disturb status in the top bar's messages indicator. Instead, just hide the indicator altogether when do-not-disturb is active. Part-of: --- diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js index 7e7477a34..7bb8bfff9 100644 --- a/js/ui/dateMenu.js +++ b/js/ui/dateMenu.js @@ -744,6 +744,7 @@ class MessagesIndicator extends St.Icon { _init() { super._init({ style_class: 'messages-indicator', + icon_name: 'message-indicator-symbolic', visible: false, y_expand: true, y_align: Clutter.ActorAlign.CENTER, @@ -792,11 +793,8 @@ class MessagesIndicator extends St.Icon { } _sync() { - let doNotDisturb = !this._settings.get_boolean('show-banners'); - this.icon_name = doNotDisturb - ? 'notifications-disabled-symbolic' - : 'message-indicator-symbolic'; - this.visible = doNotDisturb || this._count > 0; + const doNotDisturb = !this._settings.get_boolean('show-banners'); + this.visible = !doNotDisturb && this._count > 0; } });